<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>Pac-Man: Riferimenti per il file gui.cc</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="pacman_header.jpg"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Pac-Man
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generato da Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Cerca');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Pagina&#160;Principale</span></a></li>
      <li><a href="annotated.html"><span>Classi</span></a></li>
      <li class="current"><a href="files.html"><span>File</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Cerca" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Elenco&#160;dei&#160;file</span></a></li>
      <li><a href="globals.html"><span>Elementi&#160;dei&#160;file</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tutto</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classi</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>File</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funzioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variabili</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Ridefinizioni di tipo (typedef)</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Tipi enumerati (enum)</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Valori del tipo enumerato</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pagine</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Funzioni</a>  </div>
  <div class="headertitle">
<div class="title">Riferimenti per il file gui.cc</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &lt;cassert&gt;</code><br/>
<code>#include &lt;iostream&gt;</code><br/>
<code>#include &lt;fstream&gt;</code><br/>
<code>#include &lt;allegro5/allegro.h&gt;</code><br/>
<code>#include &lt;allegro5/allegro_native_dialog.h&gt;</code><br/>
<code>#include &lt;allegro5/allegro_ttf.h&gt;</code><br/>
<code>#include &lt;allegro5/allegro_primitives.h&gt;</code><br/>
<code>#include &lt;allegro5/allegro_font.h&gt;</code><br/>
<code>#include &lt;allegro5/allegro_color.h&gt;</code><br/>
<code>#include &lt;allegro5/allegro_image.h&gt;</code><br/>
<code>#include &lt;allegro5/allegro_audio.h&gt;</code><br/>
<code>#include &lt;allegro5/allegro_acodec.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="data__struct_8h_source.html">data_struct.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="gui_8h_source.html">gui.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="io_8h_source.html">io.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="logic_8h_source.html">logic.h</a>&quot;</code><br/>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Funzioni</h2></td></tr>
<tr class="memitem:a92afb82cda0774250bff5c33a94203f9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gui_8cc.html#a92afb82cda0774250bff5c33a94203f9">draw_screen_menu</a> (const int menu, const <a class="el" href="structFONT__t.html">FONT_t</a> &amp;f, const <a class="el" href="structBITMAP__t.html">BITMAP_t</a> &amp;b)</td></tr>
<tr class="memdesc:a92afb82cda0774250bff5c33a94203f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stampa il menu inziale utilizza le immagini e i font caricate in memoria, e si occupa dell'effetto di ingrandimento, di rimpicciolimento dei pallini di selezione.  <a href="#a92afb82cda0774250bff5c33a94203f9">Continua...</a><br/></td></tr>
<tr class="separator:a92afb82cda0774250bff5c33a94203f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac909a1c5f452b4d5957792d9ba875f2a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gui_8cc.html#ac909a1c5f452b4d5957792d9ba875f2a">draw_pause</a> (const <a class="el" href="structFONT__t.html">FONT_t</a> &amp;f)</td></tr>
<tr class="memdesc:ac909a1c5f452b4d5957792d9ba875f2a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stampa la pausa.  <a href="#ac909a1c5f452b4d5957792d9ba875f2a">Continua...</a><br/></td></tr>
<tr class="separator:ac909a1c5f452b4d5957792d9ba875f2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9cb68876b52fda2415c2db9800c0167d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gui_8cc.html#a9cb68876b52fda2415c2db9800c0167d">draw_countdown</a> (const <a class="el" href="structFONT__t.html">FONT_t</a> &amp;f, const <a class="el" href="structBITMAP__t.html">BITMAP_t</a> &amp;b, const <a class="el" href="structMAPPA__t.html">MAPPA_t</a> &amp;m)</td></tr>
<tr class="memdesc:a9cb68876b52fda2415c2db9800c0167d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stampa il Countdown iniziale partendo da 3 fino a 1.  <a href="#a9cb68876b52fda2415c2db9800c0167d">Continua...</a><br/></td></tr>
<tr class="separator:a9cb68876b52fda2415c2db9800c0167d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60c70a7e98039e03f0dd26c4010cc196"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gui_8cc.html#a60c70a7e98039e03f0dd26c4010cc196">draw_path</a> (const <a class="el" href="structBITMAP__t.html">BITMAP_t</a> &amp;b, const <a class="el" href="structMAPPA__t.html">MAPPA_t</a> &amp;m)</td></tr>
<tr class="memdesc:a60c70a7e98039e03f0dd26c4010cc196"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stampa la mappa la stampa della mappa prevede anche un effetto neon grazie a due variabili statiche che modificano l'alpha delle immagini.  <a href="#a60c70a7e98039e03f0dd26c4010cc196">Continua...</a><br/></td></tr>
<tr class="separator:a60c70a7e98039e03f0dd26c4010cc196"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67480dc636230e283edfe7718ba699b9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gui_8cc.html#a67480dc636230e283edfe7718ba699b9">draw_pacman</a> (<a class="el" href="structPLAYER__t.html">PLAYER_t</a> &amp;pg)</td></tr>
<tr class="memdesc:a67480dc636230e283edfe7718ba699b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stampa pacman.  <a href="#a67480dc636230e283edfe7718ba699b9">Continua...</a><br/></td></tr>
<tr class="separator:a67480dc636230e283edfe7718ba699b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5cccf6648641872f9fadf2cf74897b7d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gui_8cc.html#a5cccf6648641872f9fadf2cf74897b7d">draw_fant_fuga</a> (const <a class="el" href="structBITMAP__t.html">BITMAP_t</a> &amp;b, <a class="el" href="structFANTASMA__t.html">FANTASMA_t</a> &amp;f, int fine_fuga)</td></tr>
<tr class="memdesc:a5cccf6648641872f9fadf2cf74897b7d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stampa il fantasma quando e' in fuga.  <a href="#a5cccf6648641872f9fadf2cf74897b7d">Continua...</a><br/></td></tr>
<tr class="separator:a5cccf6648641872f9fadf2cf74897b7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa41796a01045c20787c9f9e3c4a6055e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gui_8cc.html#aa41796a01045c20787c9f9e3c4a6055e">draw_fant_mangiato</a> (const <a class="el" href="structBITMAP__t.html">BITMAP_t</a> &amp;b, <a class="el" href="structFANTASMA__t.html">FANTASMA_t</a> &amp;f)</td></tr>
<tr class="memdesc:aa41796a01045c20787c9f9e3c4a6055e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stampa il fantasma quando e' stato mangiato.  <a href="#aa41796a01045c20787c9f9e3c4a6055e">Continua...</a><br/></td></tr>
<tr class="separator:aa41796a01045c20787c9f9e3c4a6055e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a8cf3546f0b7cfb17d295ecaab62ebe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gui_8cc.html#a8a8cf3546f0b7cfb17d295ecaab62ebe">draw_fantasma</a> (<a class="el" href="structFANTASMA__t.html">FANTASMA_t</a> &amp;f)</td></tr>
<tr class="memdesc:a8a8cf3546f0b7cfb17d295ecaab62ebe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stampa il fantasma.  <a href="#a8a8cf3546f0b7cfb17d295ecaab62ebe">Continua...</a><br/></td></tr>
<tr class="separator:a8a8cf3546f0b7cfb17d295ecaab62ebe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd1f29080e2bae773cbecdf6d3d323c9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gui_8cc.html#afd1f29080e2bae773cbecdf6d3d323c9">draw_frutta</a> (ALLEGRO_TIMER *t, <a class="el" href="structBITMAP__t.html">BITMAP_t</a> b, int liv, <a class="el" href="structPLAYER__t.html">PLAYER_t</a> &amp;pg, <a class="el" href="structAUDIO__t.html">AUDIO_t</a> &amp;a)</td></tr>
<tr class="memdesc:afd1f29080e2bae773cbecdf6d3d323c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stampa la frutta.  <a href="#afd1f29080e2bae773cbecdf6d3d323c9">Continua...</a><br/></td></tr>
<tr class="separator:afd1f29080e2bae773cbecdf6d3d323c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d8252d963a670367657f89996e07d9d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gui_8cc.html#a6d8252d963a670367657f89996e07d9d">draw_gameover</a> (const <a class="el" href="structFONT__t.html">FONT_t</a> &amp;f, const <a class="el" href="structBITMAP__t.html">BITMAP_t</a> &amp;b, bool nuovo_record, int punteggio)</td></tr>
<tr class="memdesc:a6d8252d963a670367657f89996e07d9d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stampa gAME oVER.  <a href="#a6d8252d963a670367657f89996e07d9d">Continua...</a><br/></td></tr>
<tr class="separator:a6d8252d963a670367657f89996e07d9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0534db11adec5bb7032ca5c8246cc0dc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gui_8cc.html#a0534db11adec5bb7032ca5c8246cc0dc">draw_win</a> (const <a class="el" href="structFONT__t.html">FONT_t</a> &amp;f, const <a class="el" href="structBITMAP__t.html">BITMAP_t</a> &amp;b, bool nuovo_record)</td></tr>
<tr class="memdesc:a0534db11adec5bb7032ca5c8246cc0dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stampa gAME wIN.  <a href="#a0534db11adec5bb7032ca5c8246cc0dc">Continua...</a><br/></td></tr>
<tr class="separator:a0534db11adec5bb7032ca5c8246cc0dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6748c7e38a8d8198b3ce40025001cf9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gui_8cc.html#af6748c7e38a8d8198b3ce40025001cf9">draw_controls</a> (const <a class="el" href="structFONT__t.html">FONT_t</a> &amp;f, const <a class="el" href="structBITMAP__t.html">BITMAP_t</a> &amp;b)</td></tr>
<tr class="memdesc:af6748c7e38a8d8198b3ce40025001cf9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stampa i controlli del gioco.  <a href="#af6748c7e38a8d8198b3ce40025001cf9">Continua...</a><br/></td></tr>
<tr class="separator:af6748c7e38a8d8198b3ce40025001cf9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ec2dd4fec87f07220a47e69c19501b4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gui_8cc.html#a8ec2dd4fec87f07220a47e69c19501b4">draw_high_score</a> (const <a class="el" href="structFONT__t.html">FONT_t</a> &amp;f, int record)</td></tr>
<tr class="memdesc:a8ec2dd4fec87f07220a47e69c19501b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stampa il record.  <a href="#a8ec2dd4fec87f07220a47e69c19501b4">Continua...</a><br/></td></tr>
<tr class="separator:a8ec2dd4fec87f07220a47e69c19501b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Documentazione delle funzioni</h2>
<a class="anchor" id="af6748c7e38a8d8198b3ce40025001cf9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void draw_controls </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structFONT__t.html">FONT_t</a> &amp;&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structBITMAP__t.html">BITMAP_t</a> &amp;&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stampa i controlli del gioco. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">f</td><td>variabile contenente i font del gioco di tipo FONT_T </td></tr>
    <tr><td class="paramname">b</td><td>variabile contenente le immagini utilizzate in gioco di tipo BITMAP_T </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;{</div>
<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;    <span class="keywordtype">int</span> size = 48;</div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;    <span class="keywordtype">int</span> posx, posy;</div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;</div>
<div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;    posx = <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>;</div>
<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;    posy = <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a> + 3*size;</div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;</div>
<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;    <span class="comment">//up</span></div>
<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#ab9148dd7e4b693f9c1c2d9e2e2e6468e">controls</a>, size, size, size, size, posx + size/2, posy - size +10, 0);</div>
<div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;    <span class="comment">//down</span></div>
<div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#ab9148dd7e4b693f9c1c2d9e2e2e6468e">controls</a>, 0, size, size, size, posx +size/2 -1, posy + size -10, 0);</div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;    <span class="comment">//left</span></div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#ab9148dd7e4b693f9c1c2d9e2e2e6468e">controls</a>, 0, 0, size, size, posx -10, posy, 0);</div>
<div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;    <span class="comment">//right</span></div>
<div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#ab9148dd7e4b693f9c1c2d9e2e2e6468e">controls</a>, size, 0, size, size, posx + size +10, posy, 0);</div>
<div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;</div>
<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;    posy = <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a> + <a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> * 0.20;</div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;    al_draw_text(f.<a class="code" href="structFONT__t.html#add1bb60f423fa53408b6e998917891b7">h5</a>, al_map_rgb(105,253,105), <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> /2 - <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> *0.05 , posy , ALLEGRO_ALIGN_LEFT, <span class="stringliteral">&quot;Utilizza i tasti&quot;</span>);</div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;    al_draw_text(f.<a class="code" href="structFONT__t.html#add1bb60f423fa53408b6e998917891b7">h5</a>, al_map_rgb(105,253,105), <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> /2 - <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> *0.05, posy +22 , ALLEGRO_ALIGN_LEFT, <span class="stringliteral">&quot;direzionali&quot;</span>);</div>
<div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;    al_draw_text(f.<a class="code" href="structFONT__t.html#add1bb60f423fa53408b6e998917891b7">h5</a>, al_map_rgb(105,253,105), <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> /2 - <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> *0.05, posy +42 , ALLEGRO_ALIGN_LEFT, <span class="stringliteral">&quot;per muoverti&quot;</span>);</div>
<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;    al_draw_text(f.<a class="code" href="structFONT__t.html#add1bb60f423fa53408b6e998917891b7">h5</a>, al_map_rgb(105,253,105), <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> /2 - <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> *0.05, posy +82, ALLEGRO_ALIGN_LEFT, <span class="stringliteral">&quot;Spazio per la Pausa&quot;</span>);</div>
<div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;</div>
<div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;    al_draw_text(f.<a class="code" href="structFONT__t.html#add1bb60f423fa53408b6e998917891b7">h5</a>, al_map_rgb(225,255,225), <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, ALLEGRO_ALIGN_LEFT, <span class="stringliteral">&quot;Premere esc per tornare al menu&quot;</span>);</div>
<div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;</div>
<div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;    al_flip_display();</div>
<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;</div>
<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;}</div>
<div class="ttc" id="data__struct_8h_html_af898f8fa683c129434a3e7e59fbdeecc"><div class="ttname"><a href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a></div><div class="ttdeci">const int SCREENWIDTH</div><div class="ttdoc">Larghezza dello schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:15</div></div>
<div class="ttc" id="data__struct_8h_html_ae74f21004c88ef9b937f7505daccb924"><div class="ttname"><a href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a></div><div class="ttdeci">const int OFFSETX</div><div class="ttdoc">Margine laterale della finestra. </div><div class="ttdef"><b>Definition:</b> data_struct.h:17</div></div>
<div class="ttc" id="data__struct_8h_html_a18cc4152fb6dfb25ab26a2167c6db955"><div class="ttname"><a href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a></div><div class="ttdeci">const int OFFSETY</div><div class="ttdoc">Margine Superiore della finestra. </div><div class="ttdef"><b>Definition:</b> data_struct.h:18</div></div>
<div class="ttc" id="data__struct_8h_html_a19d0acd5aaaf61eabc08cd603dc0d470"><div class="ttname"><a href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a></div><div class="ttdeci">const int SCREENHEIGHT</div><div class="ttdoc">Altezza dello schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:16</div></div>
<div class="ttc" id="structBITMAP__t_html_ab9148dd7e4b693f9c1c2d9e2e2e6468e"><div class="ttname"><a href="structBITMAP__t.html#ab9148dd7e4b693f9c1c2d9e2e2e6468e">BITMAP_t::controls</a></div><div class="ttdeci">ALLEGRO_BITMAP * controls</div><div class="ttdoc">Immagine della morte di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:115</div></div>
<div class="ttc" id="structFONT__t_html_add1bb60f423fa53408b6e998917891b7"><div class="ttname"><a href="structFONT__t.html#add1bb60f423fa53408b6e998917891b7">FONT_t::h5</a></div><div class="ttdeci">ALLEGRO_FONT * h5</div><div class="ttdoc">Font H4. </div><div class="ttdef"><b>Definition:</b> data_struct.h:124</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a9cb68876b52fda2415c2db9800c0167d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void draw_countdown </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structFONT__t.html">FONT_t</a> &amp;&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structBITMAP__t.html">BITMAP_t</a> &amp;&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structMAPPA__t.html">MAPPA_t</a> &amp;&#160;</td>
          <td class="paramname"><em>m</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stampa il Countdown iniziale partendo da 3 fino a 1. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">f</td><td>variabile contenente i font del gioco di tipo FONT_T </td></tr>
    <tr><td class="paramname">b</td><td>variabile contenente le immagini utilizzate in gioco di tipo BITMAP_T </td></tr>
    <tr><td class="paramname">m</td><td>variabile contenente le informazioni riguardanti la mappa di gioco di tipo MAPPA_T </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;{</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    al_clear_to_color(al_map_rgb(0,0,0));</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <a class="code" href="gui_8cc.html#a60c70a7e98039e03f0dd26c4010cc196">draw_path</a>(b,m);</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    al_draw_text(f.<a class="code" href="structFONT__t.html#add1bb60f423fa53408b6e998917891b7">h5</a>, al_map_rgb(255,15,15), <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> / 2, <a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> *50/100, ALLEGRO_ALIGN_CENTER, <span class="stringliteral">&quot;TRE&quot;</span>);</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    al_flip_display();</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    al_rest(1.4);</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    al_clear_to_color(al_map_rgb(0,0,0));</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <a class="code" href="gui_8cc.html#a60c70a7e98039e03f0dd26c4010cc196">draw_path</a>(b,m);</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    al_draw_text(f.<a class="code" href="structFONT__t.html#add1bb60f423fa53408b6e998917891b7">h5</a>, al_map_rgb(255,15,15), <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> / 2, <a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> *50/100, ALLEGRO_ALIGN_CENTER, <span class="stringliteral">&quot;DUE&quot;</span>);</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    al_flip_display();</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    al_rest(1.4);</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    al_clear_to_color(al_map_rgb(0,0,0));</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <a class="code" href="gui_8cc.html#a60c70a7e98039e03f0dd26c4010cc196">draw_path</a>(b,m);</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    al_draw_text(f.<a class="code" href="structFONT__t.html#add1bb60f423fa53408b6e998917891b7">h5</a>, al_map_rgb(255,15,15), <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> / 2, <a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> *50/100, ALLEGRO_ALIGN_CENTER, <span class="stringliteral">&quot;UNO&quot;</span>);</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    al_flip_display();</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    al_rest(1.4);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;}</div>
<div class="ttc" id="data__struct_8h_html_af898f8fa683c129434a3e7e59fbdeecc"><div class="ttname"><a href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a></div><div class="ttdeci">const int SCREENWIDTH</div><div class="ttdoc">Larghezza dello schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:15</div></div>
<div class="ttc" id="data__struct_8h_html_a19d0acd5aaaf61eabc08cd603dc0d470"><div class="ttname"><a href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a></div><div class="ttdeci">const int SCREENHEIGHT</div><div class="ttdoc">Altezza dello schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:16</div></div>
<div class="ttc" id="gui_8cc_html_a60c70a7e98039e03f0dd26c4010cc196"><div class="ttname"><a href="gui_8cc.html#a60c70a7e98039e03f0dd26c4010cc196">draw_path</a></div><div class="ttdeci">void draw_path(const BITMAP_t &amp;b, const MAPPA_t &amp;m)</div><div class="ttdoc">Stampa la mappa la stampa della mappa prevede anche un effetto neon grazie a due variabili statiche c...</div><div class="ttdef"><b>Definition:</b> gui.cc:109</div></div>
<div class="ttc" id="structFONT__t_html_add1bb60f423fa53408b6e998917891b7"><div class="ttname"><a href="structFONT__t.html#add1bb60f423fa53408b6e998917891b7">FONT_t::h5</a></div><div class="ttdeci">ALLEGRO_FONT * h5</div><div class="ttdoc">Font H4. </div><div class="ttdef"><b>Definition:</b> data_struct.h:124</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a5cccf6648641872f9fadf2cf74897b7d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void draw_fant_fuga </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structBITMAP__t.html">BITMAP_t</a> &amp;&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structFANTASMA__t.html">FANTASMA_t</a> &amp;&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>fine_fuga</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stampa il fantasma quando e' in fuga. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">b</td><td>variabile contenente le immagini utilizzate in gioco di tipo BITMAP_T </td></tr>
    <tr><td class="paramname">pg</td><td>varibaile contenente i dati di pac-man di tipo PLAYER_T </td></tr>
    <tr><td class="paramname">fine_fuga</td><td>0 o 1 e indica se i fantasmi si trovano alla fine della fuga </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;{</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;    f.<a class="code" href="structFANTASMA__t.html#af5132e2e0f8b9d35b182cad0a82f42b5">sourcex</a> += al_get_bitmap_width(b.<a class="code" href="structBITMAP__t.html#a749c635ea419d3d69b519023febe08f1">fant_fuga</a>)/2;</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;    <span class="keywordflow">if</span>(f.<a class="code" href="structFANTASMA__t.html#af5132e2e0f8b9d35b182cad0a82f42b5">sourcex</a> &gt;= al_get_bitmap_width(b.<a class="code" href="structBITMAP__t.html#a749c635ea419d3d69b519023febe08f1">fant_fuga</a>))</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;        f.<a class="code" href="structFANTASMA__t.html#af5132e2e0f8b9d35b182cad0a82f42b5">sourcex</a> = 0;</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;    f.<a class="code" href="structFANTASMA__t.html#a15ab38c6ef25ed28735b4a5d9c796f91">sourcey</a> = fine_fuga;</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a749c635ea419d3d69b519023febe08f1">fant_fuga</a>, f.<a class="code" href="structFANTASMA__t.html#af5132e2e0f8b9d35b182cad0a82f42b5">sourcex</a></div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;                          , f.<a class="code" href="structFANTASMA__t.html#a15ab38c6ef25ed28735b4a5d9c796f91">sourcey</a> * al_get_bitmap_height(b.<a class="code" href="structBITMAP__t.html#a749c635ea419d3d69b519023febe08f1">fant_fuga</a>)/2</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;                          , al_get_bitmap_width(b.<a class="code" href="structBITMAP__t.html#a749c635ea419d3d69b519023febe08f1">fant_fuga</a>)/2</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;                          , al_get_bitmap_height(b.<a class="code" href="structBITMAP__t.html#a749c635ea419d3d69b519023febe08f1">fant_fuga</a>)/2</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;                          , f.<a class="code" href="structFANTASMA__t.html#a41ce6e9f1fb649408c4a91a154028035">x</a>, f.<a class="code" href="structFANTASMA__t.html#a866e6bc2dd2d2553ca34011af8aa17b6">y</a>, 0);</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;}</div>
<div class="ttc" id="structBITMAP__t_html_a749c635ea419d3d69b519023febe08f1"><div class="ttname"><a href="structBITMAP__t.html#a749c635ea419d3d69b519023febe08f1">BITMAP_t::fant_fuga</a></div><div class="ttdeci">ALLEGRO_BITMAP * fant_fuga</div><div class="ttdoc">Immagine Principale del menu. </div><div class="ttdef"><b>Definition:</b> data_struct.h:108</div></div>
<div class="ttc" id="structFANTASMA__t_html_a15ab38c6ef25ed28735b4a5d9c796f91"><div class="ttname"><a href="structFANTASMA__t.html#a15ab38c6ef25ed28735b4a5d9c796f91">FANTASMA_t::sourcey</a></div><div class="ttdeci">int sourcey</div><div class="ttdoc">Coordinata y per regione dello sheet di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:83</div></div>
<div class="ttc" id="structFANTASMA__t_html_a866e6bc2dd2d2553ca34011af8aa17b6"><div class="ttname"><a href="structFANTASMA__t.html#a866e6bc2dd2d2553ca34011af8aa17b6">FANTASMA_t::y</a></div><div class="ttdeci">float y</div><div class="ttdoc">Coordinata y schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:85</div></div>
<div class="ttc" id="structFANTASMA__t_html_a41ce6e9f1fb649408c4a91a154028035"><div class="ttname"><a href="structFANTASMA__t.html#a41ce6e9f1fb649408c4a91a154028035">FANTASMA_t::x</a></div><div class="ttdeci">float x</div><div class="ttdoc">Coordinata x schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:84</div></div>
<div class="ttc" id="structFANTASMA__t_html_af5132e2e0f8b9d35b182cad0a82f42b5"><div class="ttname"><a href="structFANTASMA__t.html#af5132e2e0f8b9d35b182cad0a82f42b5">FANTASMA_t::sourcex</a></div><div class="ttdeci">int sourcex</div><div class="ttdoc">Coordinata x per regione dello sheet di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:82</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="aa41796a01045c20787c9f9e3c4a6055e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void draw_fant_mangiato </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structBITMAP__t.html">BITMAP_t</a> &amp;&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structFANTASMA__t.html">FANTASMA_t</a> &amp;&#160;</td>
          <td class="paramname"><em>f</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stampa il fantasma quando e' stato mangiato. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">f</td><td>variabile contenente i font del gioco di tipo FONT_T </td></tr>
    <tr><td class="paramname">b</td><td>variabile contenente le immagini utilizzate in gioco di tipo BITMAP_T </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;{</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;    f.<a class="code" href="structFANTASMA__t.html#af5132e2e0f8b9d35b182cad0a82f42b5">sourcex</a> = 0;</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;    f.<a class="code" href="structFANTASMA__t.html#a15ab38c6ef25ed28735b4a5d9c796f91">sourcey</a> = f.<a class="code" href="structFANTASMA__t.html#aa673871d3a0e3bee91962314a5379e13">dir</a>;</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#aedfc2577861ecb4dceed56adb7de0f76">fant_mangiato</a>, f.<a class="code" href="structFANTASMA__t.html#af5132e2e0f8b9d35b182cad0a82f42b5">sourcex</a></div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;                          , f.<a class="code" href="structFANTASMA__t.html#a15ab38c6ef25ed28735b4a5d9c796f91">sourcey</a> * al_get_bitmap_height(b.<a class="code" href="structBITMAP__t.html#aedfc2577861ecb4dceed56adb7de0f76">fant_mangiato</a>)/4</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;                          , al_get_bitmap_width(b.<a class="code" href="structBITMAP__t.html#aedfc2577861ecb4dceed56adb7de0f76">fant_mangiato</a>)</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;                          , al_get_bitmap_height(b.<a class="code" href="structBITMAP__t.html#aedfc2577861ecb4dceed56adb7de0f76">fant_mangiato</a>)/4</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;                          , f.<a class="code" href="structFANTASMA__t.html#a41ce6e9f1fb649408c4a91a154028035">x</a>, f.<a class="code" href="structFANTASMA__t.html#a866e6bc2dd2d2553ca34011af8aa17b6">y</a>, 0);</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;}</div>
<div class="ttc" id="structFANTASMA__t_html_a15ab38c6ef25ed28735b4a5d9c796f91"><div class="ttname"><a href="structFANTASMA__t.html#a15ab38c6ef25ed28735b4a5d9c796f91">FANTASMA_t::sourcey</a></div><div class="ttdeci">int sourcey</div><div class="ttdoc">Coordinata y per regione dello sheet di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:83</div></div>
<div class="ttc" id="structFANTASMA__t_html_a866e6bc2dd2d2553ca34011af8aa17b6"><div class="ttname"><a href="structFANTASMA__t.html#a866e6bc2dd2d2553ca34011af8aa17b6">FANTASMA_t::y</a></div><div class="ttdeci">float y</div><div class="ttdoc">Coordinata y schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:85</div></div>
<div class="ttc" id="structFANTASMA__t_html_a41ce6e9f1fb649408c4a91a154028035"><div class="ttname"><a href="structFANTASMA__t.html#a41ce6e9f1fb649408c4a91a154028035">FANTASMA_t::x</a></div><div class="ttdeci">float x</div><div class="ttdoc">Coordinata x schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:84</div></div>
<div class="ttc" id="structFANTASMA__t_html_af5132e2e0f8b9d35b182cad0a82f42b5"><div class="ttname"><a href="structFANTASMA__t.html#af5132e2e0f8b9d35b182cad0a82f42b5">FANTASMA_t::sourcex</a></div><div class="ttdeci">int sourcex</div><div class="ttdoc">Coordinata x per regione dello sheet di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:82</div></div>
<div class="ttc" id="structBITMAP__t_html_aedfc2577861ecb4dceed56adb7de0f76"><div class="ttname"><a href="structBITMAP__t.html#aedfc2577861ecb4dceed56adb7de0f76">BITMAP_t::fant_mangiato</a></div><div class="ttdeci">ALLEGRO_BITMAP * fant_mangiato</div><div class="ttdoc">Sheet della fuga dei fantasmi. </div><div class="ttdef"><b>Definition:</b> data_struct.h:109</div></div>
<div class="ttc" id="structFANTASMA__t_html_aa673871d3a0e3bee91962314a5379e13"><div class="ttname"><a href="structFANTASMA__t.html#aa673871d3a0e3bee91962314a5379e13">FANTASMA_t::dir</a></div><div class="ttdeci">DIREZ dir</div><div class="ttdoc">Stato attuale della direzione del fantasma. </div><div class="ttdef"><b>Definition:</b> data_struct.h:77</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a8a8cf3546f0b7cfb17d295ecaab62ebe"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void draw_fantasma </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structFANTASMA__t.html">FANTASMA_t</a> &amp;&#160;</td>
          <td class="paramname"><em>f</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stampa il fantasma. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">f</td><td>variabile contenente i font del gioco di tipo FONT_T </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;{</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;    f.<a class="code" href="structFANTASMA__t.html#af5132e2e0f8b9d35b182cad0a82f42b5">sourcex</a> += al_get_bitmap_width(f.<a class="code" href="structFANTASMA__t.html#a1049d6a35db7532b5bd521436f702722">img</a>)/2;</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;    <span class="keywordflow">if</span>(f.<a class="code" href="structFANTASMA__t.html#af5132e2e0f8b9d35b182cad0a82f42b5">sourcex</a> &gt;= al_get_bitmap_width(f.<a class="code" href="structFANTASMA__t.html#a1049d6a35db7532b5bd521436f702722">img</a>))</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;        f.<a class="code" href="structFANTASMA__t.html#af5132e2e0f8b9d35b182cad0a82f42b5">sourcex</a> = 0;</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;    f.<a class="code" href="structFANTASMA__t.html#a15ab38c6ef25ed28735b4a5d9c796f91">sourcey</a> = f.<a class="code" href="structFANTASMA__t.html#aa673871d3a0e3bee91962314a5379e13">dir</a>;</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;    al_draw_bitmap_region(f.<a class="code" href="structFANTASMA__t.html#a1049d6a35db7532b5bd521436f702722">img</a>, f.<a class="code" href="structFANTASMA__t.html#af5132e2e0f8b9d35b182cad0a82f42b5">sourcex</a></div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;                          , f.<a class="code" href="structFANTASMA__t.html#a15ab38c6ef25ed28735b4a5d9c796f91">sourcey</a> * al_get_bitmap_height(f.<a class="code" href="structFANTASMA__t.html#a1049d6a35db7532b5bd521436f702722">img</a>)/4</div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;                          , al_get_bitmap_width(f.<a class="code" href="structFANTASMA__t.html#a1049d6a35db7532b5bd521436f702722">img</a>)/2</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;                          , al_get_bitmap_height(f.<a class="code" href="structFANTASMA__t.html#a1049d6a35db7532b5bd521436f702722">img</a>)/4</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;                          , f.<a class="code" href="structFANTASMA__t.html#a41ce6e9f1fb649408c4a91a154028035">x</a>, f.<a class="code" href="structFANTASMA__t.html#a866e6bc2dd2d2553ca34011af8aa17b6">y</a>, 0);</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;}</div>
<div class="ttc" id="structFANTASMA__t_html_a15ab38c6ef25ed28735b4a5d9c796f91"><div class="ttname"><a href="structFANTASMA__t.html#a15ab38c6ef25ed28735b4a5d9c796f91">FANTASMA_t::sourcey</a></div><div class="ttdeci">int sourcey</div><div class="ttdoc">Coordinata y per regione dello sheet di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:83</div></div>
<div class="ttc" id="structFANTASMA__t_html_a866e6bc2dd2d2553ca34011af8aa17b6"><div class="ttname"><a href="structFANTASMA__t.html#a866e6bc2dd2d2553ca34011af8aa17b6">FANTASMA_t::y</a></div><div class="ttdeci">float y</div><div class="ttdoc">Coordinata y schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:85</div></div>
<div class="ttc" id="structFANTASMA__t_html_a41ce6e9f1fb649408c4a91a154028035"><div class="ttname"><a href="structFANTASMA__t.html#a41ce6e9f1fb649408c4a91a154028035">FANTASMA_t::x</a></div><div class="ttdeci">float x</div><div class="ttdoc">Coordinata x schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:84</div></div>
<div class="ttc" id="structFANTASMA__t_html_af5132e2e0f8b9d35b182cad0a82f42b5"><div class="ttname"><a href="structFANTASMA__t.html#af5132e2e0f8b9d35b182cad0a82f42b5">FANTASMA_t::sourcex</a></div><div class="ttdeci">int sourcex</div><div class="ttdoc">Coordinata x per regione dello sheet di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:82</div></div>
<div class="ttc" id="structFANTASMA__t_html_aa673871d3a0e3bee91962314a5379e13"><div class="ttname"><a href="structFANTASMA__t.html#aa673871d3a0e3bee91962314a5379e13">FANTASMA_t::dir</a></div><div class="ttdeci">DIREZ dir</div><div class="ttdoc">Stato attuale della direzione del fantasma. </div><div class="ttdef"><b>Definition:</b> data_struct.h:77</div></div>
<div class="ttc" id="structFANTASMA__t_html_a1049d6a35db7532b5bd521436f702722"><div class="ttname"><a href="structFANTASMA__t.html#a1049d6a35db7532b5bd521436f702722">FANTASMA_t::img</a></div><div class="ttdeci">ALLEGRO_BITMAP * img</div><div class="ttdoc">Immagine relativa al fantasma. </div><div class="ttdef"><b>Definition:</b> data_struct.h:86</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="afd1f29080e2bae773cbecdf6d3d323c9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void draw_frutta </td>
          <td>(</td>
          <td class="paramtype">ALLEGRO_TIMER *&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structBITMAP__t.html">BITMAP_t</a>&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>liv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structPLAYER__t.html">PLAYER_t</a> &amp;&#160;</td>
          <td class="paramname"><em>pg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structAUDIO__t.html">AUDIO_t</a> &amp;&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stampa la frutta. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">t</td><td>timer di gioco che controlla i secondi trascorsi dall'inizio della vita </td></tr>
    <tr><td class="paramname">b</td><td>variabile contenente le immagini utilizzate in gioco di tipo BITMAP_T </td></tr>
    <tr><td class="paramname">liv</td><td>livello attuale del gioco. </td></tr>
    <tr><td class="paramname">pg</td><td>varibaile contenente i dati di pac-man di tipo PLAYER_T </td></tr>
    <tr><td class="paramname">a</td><td>variabile di tipo struttura AUDIO_T contenente i suoni del gioco </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;                                                                                 {</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> mangiata = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;    <span class="keywordflow">if</span>(al_get_timer_count(t) &gt;= 30 &amp;&amp; al_get_timer_count(t) &lt;= 42){</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;        <span class="keywordtype">float</span> dist = 3;</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;        <span class="keywordtype">float</span> px = pg.<a class="code" href="structPLAYER__t.html#aa6bfc54bd6064533300002983d91b824">x</a> + dist;</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;        <span class="keywordtype">float</span> py = pg.<a class="code" href="structPLAYER__t.html#ab81f7ae3799b19f183ae25e433f6637e">y</a> + dist;</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;        <span class="keywordtype">float</span> ph = pg.<a class="code" href="structPLAYER__t.html#ab81f7ae3799b19f183ae25e433f6637e">y</a> + <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> -dist;</div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;        <span class="keywordtype">float</span> pw = pg.<a class="code" href="structPLAYER__t.html#aa6bfc54bd6064533300002983d91b824">x</a> + <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> -dist;</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;        <span class="keywordtype">float</span> frx = (13 * <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>) + dist;</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;        <span class="keywordtype">float</span> fry = (17 * <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>) + dist;</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;        <span class="keywordtype">float</span> frh = al_get_bitmap_height(b.<a class="code" href="structBITMAP__t.html#a16f81d2b0d3a14509b6907cc383f6e54">frutta</a>) -dist;</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;        <span class="keywordtype">float</span> frw = al_get_bitmap_width(b.<a class="code" href="structBITMAP__t.html#a16f81d2b0d3a14509b6907cc383f6e54">frutta</a>)/8 -dist;</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;</div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;        <span class="keywordflow">if</span> (((frx&gt;=px &amp;&amp; frx&lt;=pw) || (frw&gt;=px &amp;&amp; frw&lt;=pw))</div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;            &amp;&amp; ( (fry&gt;=py &amp;&amp; fry&lt;=ph) || (frh&gt;=py &amp;&amp; frh&lt;=ph) )</div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;            &amp;&amp; !mangiata){</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;            al_play_sample(a.<a class="code" href="structAUDIO__t.html#a568eeb0af62ab6923f70fc5e3a4e12f5">pacman_eatfruit</a>,1.0,0.0, 1, ALLEGRO_PLAYMODE_ONCE , 0);</div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;            <span class="keywordflow">if</span>((pg.<a class="code" href="structPLAYER__t.html#a7e67b1e986244dc4437d6e3729669f49">punteggio</a> &lt;= 10000 &amp;&amp; pg.<a class="code" href="structPLAYER__t.html#a7e67b1e986244dc4437d6e3729669f49">punteggio</a> + 100*liv &gt; 10000) ||</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;               (pg.<a class="code" href="structPLAYER__t.html#a7e67b1e986244dc4437d6e3729669f49">punteggio</a> &lt;= 20000 &amp;&amp; pg.<a class="code" href="structPLAYER__t.html#a7e67b1e986244dc4437d6e3729669f49">punteggio</a> + 100*liv  &gt; 20000) ||</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;               (pg.<a class="code" href="structPLAYER__t.html#a7e67b1e986244dc4437d6e3729669f49">punteggio</a> &lt;= 40000 &amp;&amp; pg.<a class="code" href="structPLAYER__t.html#a7e67b1e986244dc4437d6e3729669f49">punteggio</a> + 100*liv  &gt; 40000)){</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;                al_play_sample(a.<a class="code" href="structAUDIO__t.html#ae58c9a3c6639f34fa149c5e0b379b89a">pacman_extrapac</a>, 1.0, 0.0, 1.0, ALLEGRO_PLAYMODE_ONCE,0);</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;                pg.<a class="code" href="structPLAYER__t.html#a15e538b419151663a5a74f229c6f73b1">vita</a>++;</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;            }</div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;            pg.<a class="code" href="structPLAYER__t.html#a7e67b1e986244dc4437d6e3729669f49">punteggio</a> += 100*liv;</div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;            mangiata = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;        }</div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;</div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;        <span class="keywordflow">if</span>(!mangiata){</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;            <span class="keywordflow">if</span>(liv &lt;= 8)</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;                al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a16f81d2b0d3a14509b6907cc383f6e54">frutta</a>,(liv-1)*al_get_bitmap_width(b.<a class="code" href="structBITMAP__t.html#a16f81d2b0d3a14509b6907cc383f6e54">frutta</a>)/8, 0</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;                                        , al_get_bitmap_width(b.<a class="code" href="structBITMAP__t.html#a16f81d2b0d3a14509b6907cc383f6e54">frutta</a>)/8</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;                                        , al_get_bitmap_height(b.<a class="code" href="structBITMAP__t.html#a16f81d2b0d3a14509b6907cc383f6e54">frutta</a>)</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;                                        , 13 * <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, 17 * <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;                al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a16f81d2b0d3a14509b6907cc383f6e54">frutta</a>, 8 * al_get_bitmap_width(b.<a class="code" href="structBITMAP__t.html#a16f81d2b0d3a14509b6907cc383f6e54">frutta</a>)/8, 0</div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;                                        , al_get_bitmap_width(b.<a class="code" href="structBITMAP__t.html#a16f81d2b0d3a14509b6907cc383f6e54">frutta</a>)/8</div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;                                        , al_get_bitmap_height(b.<a class="code" href="structBITMAP__t.html#a16f81d2b0d3a14509b6907cc383f6e54">frutta</a>)</div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;                                        , 13 * <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, 17 * <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;        }</div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;    }</div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;        mangiata = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;}</div>
<div class="ttc" id="structPLAYER__t_html_a15e538b419151663a5a74f229c6f73b1"><div class="ttname"><a href="structPLAYER__t.html#a15e538b419151663a5a74f229c6f73b1">PLAYER_t::vita</a></div><div class="ttdeci">int vita</div><div class="ttdoc">Vite di pacman che possono essere minimo 0 massimo 3. </div><div class="ttdef"><b>Definition:</b> data_struct.h:68</div></div>
<div class="ttc" id="data__struct_8h_html_af60f6b462c324a9945966c9b5992a105"><div class="ttname"><a href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a></div><div class="ttdeci">const int BLOCKSIZE</div><div class="ttdoc">Blocchi della mappa. </div><div class="ttdef"><b>Definition:</b> data_struct.h:22</div></div>
<div class="ttc" id="structPLAYER__t_html_aa6bfc54bd6064533300002983d91b824"><div class="ttname"><a href="structPLAYER__t.html#aa6bfc54bd6064533300002983d91b824">PLAYER_t::x</a></div><div class="ttdeci">float x</div><div class="ttdoc">Coordinata x schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:66</div></div>
<div class="ttc" id="structAUDIO__t_html_a568eeb0af62ab6923f70fc5e3a4e12f5"><div class="ttname"><a href="structAUDIO__t.html#a568eeb0af62ab6923f70fc5e3a4e12f5">AUDIO_t::pacman_eatfruit</a></div><div class="ttdeci">ALLEGRO_SAMPLE * pacman_eatfruit</div><div class="ttdoc">Quando pacman mangia la frutta. </div><div class="ttdef"><b>Definition:</b> data_struct.h:98</div></div>
<div class="ttc" id="data__struct_8h_html_ae74f21004c88ef9b937f7505daccb924"><div class="ttname"><a href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a></div><div class="ttdeci">const int OFFSETX</div><div class="ttdoc">Margine laterale della finestra. </div><div class="ttdef"><b>Definition:</b> data_struct.h:17</div></div>
<div class="ttc" id="structBITMAP__t_html_a16f81d2b0d3a14509b6907cc383f6e54"><div class="ttname"><a href="structBITMAP__t.html#a16f81d2b0d3a14509b6907cc383f6e54">BITMAP_t::frutta</a></div><div class="ttdeci">ALLEGRO_BITMAP * frutta</div><div class="ttdoc">Fantasmi spaventati e morti. </div><div class="ttdef"><b>Definition:</b> data_struct.h:113</div></div>
<div class="ttc" id="data__struct_8h_html_a18cc4152fb6dfb25ab26a2167c6db955"><div class="ttname"><a href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a></div><div class="ttdeci">const int OFFSETY</div><div class="ttdoc">Margine Superiore della finestra. </div><div class="ttdef"><b>Definition:</b> data_struct.h:18</div></div>
<div class="ttc" id="structAUDIO__t_html_ae58c9a3c6639f34fa149c5e0b379b89a"><div class="ttname"><a href="structAUDIO__t.html#ae58c9a3c6639f34fa149c5e0b379b89a">AUDIO_t::pacman_extrapac</a></div><div class="ttdeci">ALLEGRO_SAMPLE * pacman_extrapac</div><div class="ttdoc">Quando pacman mangia i pallini speciali. </div><div class="ttdef"><b>Definition:</b> data_struct.h:96</div></div>
<div class="ttc" id="structPLAYER__t_html_a7e67b1e986244dc4437d6e3729669f49"><div class="ttname"><a href="structPLAYER__t.html#a7e67b1e986244dc4437d6e3729669f49">PLAYER_t::punteggio</a></div><div class="ttdeci">int punteggio</div><div class="ttdoc">punteggio attuale </div><div class="ttdef"><b>Definition:</b> data_struct.h:69</div></div>
<div class="ttc" id="structPLAYER__t_html_ab81f7ae3799b19f183ae25e433f6637e"><div class="ttname"><a href="structPLAYER__t.html#ab81f7ae3799b19f183ae25e433f6637e">PLAYER_t::y</a></div><div class="ttdeci">float y</div><div class="ttdoc">Coordinata y schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:67</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a6d8252d963a670367657f89996e07d9d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void draw_gameover </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structFONT__t.html">FONT_t</a> &amp;&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structBITMAP__t.html">BITMAP_t</a> &amp;&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>nuovo_record</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>punteggio</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stampa gAME oVER. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">f</td><td>variabile contenente i font del gioco di tipo FONT_T </td></tr>
    <tr><td class="paramname">b</td><td>variabile contenente le immagini utilizzate in gioco di tipo BITMAP_T </td></tr>
    <tr><td class="paramname">nuovo_record</td><td>tipo boleano vero se si e' raggiunto un nuovo record </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;{</div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;    al_clear_to_color(al_map_rgb(0,0,0));</div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;    al_draw_text(f.<a class="code" href="structFONT__t.html#ab8b7bfc03f3e59ae5cc656798d685f95">h1</a>, al_map_rgb(255,15,15), <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> / 2, <a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> *50/100, ALLEGRO_ALIGN_CENTER, <span class="stringliteral">&quot;**** g a m e  o v e r ****&quot;</span>);</div>
<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;    al_draw_text(f.<a class="code" href="structFONT__t.html#add1bb60f423fa53408b6e998917891b7">h5</a>, al_map_rgb(255,255,255), <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> / 2, (<a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> *50/100)+200, ALLEGRO_ALIGN_CENTER, <span class="stringliteral">&quot;Press Enter&quot;</span>);</div>
<div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;    <span class="keywordflow">if</span>(nuovo_record)</div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;        al_draw_text(f.<a class="code" href="structFONT__t.html#add1bb60f423fa53408b6e998917891b7">h5</a>, al_map_rgb(255,255,255), <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> / 2, (<a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> *50/100)-200, ALLEGRO_ALIGN_CENTER, <span class="stringliteral">&quot;Nuovo Record&quot;</span>);</div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;    al_draw_textf(f.<a class="code" href="structFONT__t.html#add1bb60f423fa53408b6e998917891b7">h5</a>, al_map_rgb(255,15,15), <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> / 2, (<a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> *50/100)+100, ALLEGRO_ALIGN_CENTER, <span class="stringliteral">&quot;Punteggio: %d&quot;</span>, punteggio);</div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;    al_flip_display();</div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;}</div>
<div class="ttc" id="data__struct_8h_html_af898f8fa683c129434a3e7e59fbdeecc"><div class="ttname"><a href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a></div><div class="ttdeci">const int SCREENWIDTH</div><div class="ttdoc">Larghezza dello schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:15</div></div>
<div class="ttc" id="structFONT__t_html_ab8b7bfc03f3e59ae5cc656798d685f95"><div class="ttname"><a href="structFONT__t.html#ab8b7bfc03f3e59ae5cc656798d685f95">FONT_t::h1</a></div><div class="ttdeci">ALLEGRO_FONT * h1</div><div class="ttdef"><b>Definition:</b> data_struct.h:120</div></div>
<div class="ttc" id="data__struct_8h_html_a19d0acd5aaaf61eabc08cd603dc0d470"><div class="ttname"><a href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a></div><div class="ttdeci">const int SCREENHEIGHT</div><div class="ttdoc">Altezza dello schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:16</div></div>
<div class="ttc" id="structFONT__t_html_add1bb60f423fa53408b6e998917891b7"><div class="ttname"><a href="structFONT__t.html#add1bb60f423fa53408b6e998917891b7">FONT_t::h5</a></div><div class="ttdeci">ALLEGRO_FONT * h5</div><div class="ttdoc">Font H4. </div><div class="ttdef"><b>Definition:</b> data_struct.h:124</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a8ec2dd4fec87f07220a47e69c19501b4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void draw_high_score </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structFONT__t.html">FONT_t</a> &amp;&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>record</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stampa il record. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">f</td><td>variabile contenente i font del gioco di tipo FONT_T </td></tr>
    <tr><td class="paramname">record</td><td>contenente il record attualmente raggiunto </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;{</div>
<div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;    al_draw_textf(f.<a class="code" href="structFONT__t.html#add1bb60f423fa53408b6e998917891b7">h5</a>, al_map_rgb(15,255,15), <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> / 2, <a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> *50/100, ALLEGRO_ALIGN_CENTER,<span class="stringliteral">&quot;%d&quot;</span>,record);</div>
<div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;</div>
<div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;    al_draw_text(f.<a class="code" href="structFONT__t.html#add1bb60f423fa53408b6e998917891b7">h5</a>, al_map_rgb(225,255,225), <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, ALLEGRO_ALIGN_LEFT, <span class="stringliteral">&quot;Premere esc per tornare al menu&quot;</span>);</div>
<div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;</div>
<div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;}</div>
<div class="ttc" id="data__struct_8h_html_af898f8fa683c129434a3e7e59fbdeecc"><div class="ttname"><a href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a></div><div class="ttdeci">const int SCREENWIDTH</div><div class="ttdoc">Larghezza dello schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:15</div></div>
<div class="ttc" id="data__struct_8h_html_ae74f21004c88ef9b937f7505daccb924"><div class="ttname"><a href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a></div><div class="ttdeci">const int OFFSETX</div><div class="ttdoc">Margine laterale della finestra. </div><div class="ttdef"><b>Definition:</b> data_struct.h:17</div></div>
<div class="ttc" id="data__struct_8h_html_a18cc4152fb6dfb25ab26a2167c6db955"><div class="ttname"><a href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a></div><div class="ttdeci">const int OFFSETY</div><div class="ttdoc">Margine Superiore della finestra. </div><div class="ttdef"><b>Definition:</b> data_struct.h:18</div></div>
<div class="ttc" id="data__struct_8h_html_a19d0acd5aaaf61eabc08cd603dc0d470"><div class="ttname"><a href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a></div><div class="ttdeci">const int SCREENHEIGHT</div><div class="ttdoc">Altezza dello schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:16</div></div>
<div class="ttc" id="structFONT__t_html_add1bb60f423fa53408b6e998917891b7"><div class="ttname"><a href="structFONT__t.html#add1bb60f423fa53408b6e998917891b7">FONT_t::h5</a></div><div class="ttdeci">ALLEGRO_FONT * h5</div><div class="ttdoc">Font H4. </div><div class="ttdef"><b>Definition:</b> data_struct.h:124</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a67480dc636230e283edfe7718ba699b9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void draw_pacman </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPLAYER__t.html">PLAYER_t</a> &amp;&#160;</td>
          <td class="paramname"><em>pg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stampa pacman. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">pg</td><td>varibaile contenente i dati di pac-man di tipo PLAYER_T </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;{</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;    pg.<a class="code" href="structPLAYER__t.html#aade4415d08e695ee02427da46073bb2b">sourcex</a> += al_get_bitmap_width(pg.<a class="code" href="structPLAYER__t.html#aa19de2169570b92a594342181ef3f679">img</a>)/3;</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;    <span class="keywordflow">if</span>(pg.<a class="code" href="structPLAYER__t.html#aade4415d08e695ee02427da46073bb2b">sourcex</a> &gt;= al_get_bitmap_width(pg.<a class="code" href="structPLAYER__t.html#aa19de2169570b92a594342181ef3f679">img</a>))</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;        pg.<a class="code" href="structPLAYER__t.html#aade4415d08e695ee02427da46073bb2b">sourcex</a> = 0;</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;    pg.<a class="code" href="structPLAYER__t.html#a4b8fca3349d778b421c46b5b98b165fe">sourcey</a> = pg.<a class="code" href="structPLAYER__t.html#afb6bd811c5d4e65c62cb6435b7df42e8">dir</a>;</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;    <span class="keywordflow">if</span>(pg.<a class="code" href="structPLAYER__t.html#afb6bd811c5d4e65c62cb6435b7df42e8">dir</a> == <a class="code" href="data__struct_8h.html#a31c6f3fb507a4edd8e1f355b0e772903a4303eb08a6089d7c223aa1f76fa56a30">FERMO</a>){</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;        pg.<a class="code" href="structPLAYER__t.html#a4b8fca3349d778b421c46b5b98b165fe">sourcey</a> = pg.<a class="code" href="structPLAYER__t.html#ab008f2009f1a813ef0d34f05e336b92a">precdir</a>;</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;        pg.<a class="code" href="structPLAYER__t.html#aade4415d08e695ee02427da46073bb2b">sourcex</a> = 0;</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    }</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;    al_draw_bitmap_region(pg.<a class="code" href="structPLAYER__t.html#aa19de2169570b92a594342181ef3f679">img</a>, pg.<a class="code" href="structPLAYER__t.html#aade4415d08e695ee02427da46073bb2b">sourcex</a></div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;                          , pg.<a class="code" href="structPLAYER__t.html#a4b8fca3349d778b421c46b5b98b165fe">sourcey</a> * al_get_bitmap_height(pg.<a class="code" href="structPLAYER__t.html#aa19de2169570b92a594342181ef3f679">img</a>)/4</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;                          , al_get_bitmap_width(pg.<a class="code" href="structPLAYER__t.html#aa19de2169570b92a594342181ef3f679">img</a>)/3</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;                          , al_get_bitmap_height(pg.<a class="code" href="structPLAYER__t.html#aa19de2169570b92a594342181ef3f679">img</a>)/4</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;                          , pg.<a class="code" href="structPLAYER__t.html#aa6bfc54bd6064533300002983d91b824">x</a>, pg.<a class="code" href="structPLAYER__t.html#ab81f7ae3799b19f183ae25e433f6637e">y</a>, 0);</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;}</div>
<div class="ttc" id="structPLAYER__t_html_aade4415d08e695ee02427da46073bb2b"><div class="ttname"><a href="structPLAYER__t.html#aade4415d08e695ee02427da46073bb2b">PLAYER_t::sourcex</a></div><div class="ttdeci">int sourcex</div><div class="ttdoc">Coordinata x per regione dello sheet di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:64</div></div>
<div class="ttc" id="structPLAYER__t_html_a4b8fca3349d778b421c46b5b98b165fe"><div class="ttname"><a href="structPLAYER__t.html#a4b8fca3349d778b421c46b5b98b165fe">PLAYER_t::sourcey</a></div><div class="ttdeci">int sourcey</div><div class="ttdoc">Coordinata y per regione dello sheet di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:65</div></div>
<div class="ttc" id="structPLAYER__t_html_aa6bfc54bd6064533300002983d91b824"><div class="ttname"><a href="structPLAYER__t.html#aa6bfc54bd6064533300002983d91b824">PLAYER_t::x</a></div><div class="ttdeci">float x</div><div class="ttdoc">Coordinata x schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:66</div></div>
<div class="ttc" id="structPLAYER__t_html_aa19de2169570b92a594342181ef3f679"><div class="ttname"><a href="structPLAYER__t.html#aa19de2169570b92a594342181ef3f679">PLAYER_t::img</a></div><div class="ttdeci">ALLEGRO_BITMAP * img</div><div class="ttdoc">L&#39;immagine associata a Pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:71</div></div>
<div class="ttc" id="data__struct_8h_html_a31c6f3fb507a4edd8e1f355b0e772903a4303eb08a6089d7c223aa1f76fa56a30"><div class="ttname"><a href="data__struct_8h.html#a31c6f3fb507a4edd8e1f355b0e772903a4303eb08a6089d7c223aa1f76fa56a30">FERMO</a></div><div class="ttdef"><b>Definition:</b> data_struct.h:26</div></div>
<div class="ttc" id="structPLAYER__t_html_afb6bd811c5d4e65c62cb6435b7df42e8"><div class="ttname"><a href="structPLAYER__t.html#afb6bd811c5d4e65c62cb6435b7df42e8">PLAYER_t::dir</a></div><div class="ttdeci">DIREZ dir</div><div class="ttdoc">Stato attuale della direzione di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:60</div></div>
<div class="ttc" id="structPLAYER__t_html_ab008f2009f1a813ef0d34f05e336b92a"><div class="ttname"><a href="structPLAYER__t.html#ab008f2009f1a813ef0d34f05e336b92a">PLAYER_t::precdir</a></div><div class="ttdeci">DIREZ precdir</div><div class="ttdoc">Stato della precedente direzione di pacman. </div><div class="ttdef"><b>Definition:</b> data_struct.h:61</div></div>
<div class="ttc" id="structPLAYER__t_html_ab81f7ae3799b19f183ae25e433f6637e"><div class="ttname"><a href="structPLAYER__t.html#ab81f7ae3799b19f183ae25e433f6637e">PLAYER_t::y</a></div><div class="ttdeci">float y</div><div class="ttdoc">Coordinata y schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:67</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a60c70a7e98039e03f0dd26c4010cc196"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void draw_path </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structBITMAP__t.html">BITMAP_t</a> &amp;&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structMAPPA__t.html">MAPPA_t</a> &amp;&#160;</td>
          <td class="paramname"><em>m</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stampa la mappa la stampa della mappa prevede anche un effetto neon grazie a due variabili statiche che modificano l'alpha delle immagini. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">b</td><td>variabile contenente le immagini utilizzate in gioco di tipo BITMAP_T </td></tr>
    <tr><td class="paramname">m</td><td>variabile contenente le informazioni riguardanti la mappa di gioco di tipo MAPPA_T </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;{</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">int</span> alpha;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> b_alpha;</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    <span class="keywordflow">if</span>(b_alpha){</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        alpha += 15;</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;        <span class="keywordflow">if</span>(alpha &gt;= 255){</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;            alpha = 255;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;            b_alpha = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        }</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    }</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <span class="keywordflow">else</span>{</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;        alpha -= 15;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        <span class="keywordflow">if</span>(alpha &lt;= 0){</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;            alpha = 0;</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;            b_alpha = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;        }</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    }</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    assert(alpha &lt; 255 || alpha &gt; 0);</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i &lt; m.<a class="code" href="structMAPPA__t.html#a66ed78e0a589ef13ecb5e82ec4097934">r</a>; i++){</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 0; j &lt; m.<a class="code" href="structMAPPA__t.html#a2644bce73327c50b0538aac5a9039c54">c</a>; j++){</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;            <span class="keywordflow">switch</span> (m.<a class="code" href="structMAPPA__t.html#ab2e9ea9798d2de75538abca11cb7372d">mappa</a>[i][j]){</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;0&#39;</span>:{</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;                    ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 32, 0, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 32, 0, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;                }</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;B&#39;</span>:{</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;                    ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 0, 0, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 0, 0, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;                }</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;C&#39;</span>:{</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;                    ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 16, 0, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 16, 0, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;                }</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;D&#39;</span>:{</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;                    ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 48, 0, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 48, 0, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;                }</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;E&#39;</span>:{</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;                    ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 0, 16, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 0, 16, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;                }</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;F&#39;</span>:{</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;                ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 16, 16, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 16, 16, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;                }</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;G&#39;</span>:{ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 32, 16, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 32, 16, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;                }</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;H&#39;</span>:{ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 48, 16, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 48, 16, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;                }</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;I&#39;</span>:{ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 0, 32, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 0, 32, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;                }</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;L&#39;</span>:{ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 16, 32, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 16, 32, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;                }</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;M&#39;</span>:{ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 32, 32, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 32, 32, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;                }</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;N&#39;</span>:{ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 48, 32, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 48, 32, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;                }</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;P&#39;</span>:{ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 0, 48, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 0, 48, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;                }</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;Q&#39;</span>:{ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 16, 48, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 16, 48, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;                }</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;R&#39;</span>:{ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 32, 48, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 32, 48, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;                }</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;S&#39;</span>:{ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 48, 48, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 48, 48, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;                }</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;J&#39;</span>:{ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 0, 64, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 0, 64, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;                }</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;K&#39;</span>:{ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 16, 64, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 16, 64, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;                }</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;W&#39;</span>:{ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 32, 64, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 32, 64, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;                }</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;X&#39;</span>:{ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 48, 64, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 48, 64, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;                }</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;Y&#39;</span>:{ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 32, 64, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 32, 64, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 1);</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 1);</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;                }</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;A&#39;</span>:{ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 48, 64, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 48, 64, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 2);</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 2);</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;                }</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;T&#39;</span>:{ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 0, 80, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 0, 80, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;                }</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;U&#39;</span>:{ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 16, 80, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 16, 80, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;                }</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;V&#39;</span>:{ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 32, 80, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 32, 80, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;                }</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;Z&#39;</span>:{ALLEGRO_BITMAP *subBitmap;</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;                    subBitmap = al_create_sub_bitmap(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 48, 80, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>,<a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>);</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 48, 80, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;                    al_draw_tinted_bitmap(subBitmap, al_map_rgba(255, 255, 255, alpha), <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;                    al_destroy_bitmap(subBitmap);</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;                }</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;                <span class="keywordflow">case</span> <span class="charliteral">&#39;O&#39;</span>:</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;                    al_draw_bitmap_region(b.<a class="code" href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">autotile</a>, 32, 0, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * j + <a class="code" href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a>, <a class="code" href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a> * i + <a class="code" href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a>, 0);</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;            }</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;        }</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;    }</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;}</div>
<div class="ttc" id="structBITMAP__t_html_a88336e9319de6756949da237686a567b"><div class="ttname"><a href="structBITMAP__t.html#a88336e9319de6756949da237686a567b">BITMAP_t::autotile</a></div><div class="ttdeci">ALLEGRO_BITMAP * autotile</div><div class="ttdoc">Immagine per la comparsa del puntino nel menu. </div><div class="ttdef"><b>Definition:</b> data_struct.h:111</div></div>
<div class="ttc" id="data__struct_8h_html_af60f6b462c324a9945966c9b5992a105"><div class="ttname"><a href="data__struct_8h.html#af60f6b462c324a9945966c9b5992a105">BLOCKSIZE</a></div><div class="ttdeci">const int BLOCKSIZE</div><div class="ttdoc">Blocchi della mappa. </div><div class="ttdef"><b>Definition:</b> data_struct.h:22</div></div>
<div class="ttc" id="structMAPPA__t_html_ab2e9ea9798d2de75538abca11cb7372d"><div class="ttname"><a href="structMAPPA__t.html#ab2e9ea9798d2de75538abca11cb7372d">MAPPA_t::mappa</a></div><div class="ttdeci">char ** mappa</div><div class="ttdoc">Matrice che definisce la mappa. </div><div class="ttdef"><b>Definition:</b> data_struct.h:46</div></div>
<div class="ttc" id="data__struct_8h_html_ae74f21004c88ef9b937f7505daccb924"><div class="ttname"><a href="data__struct_8h.html#ae74f21004c88ef9b937f7505daccb924">OFFSETX</a></div><div class="ttdeci">const int OFFSETX</div><div class="ttdoc">Margine laterale della finestra. </div><div class="ttdef"><b>Definition:</b> data_struct.h:17</div></div>
<div class="ttc" id="structMAPPA__t_html_a2644bce73327c50b0538aac5a9039c54"><div class="ttname"><a href="structMAPPA__t.html#a2644bce73327c50b0538aac5a9039c54">MAPPA_t::c</a></div><div class="ttdeci">int c</div><div class="ttdoc">Numero di Righe. </div><div class="ttdef"><b>Definition:</b> data_struct.h:45</div></div>
<div class="ttc" id="data__struct_8h_html_a18cc4152fb6dfb25ab26a2167c6db955"><div class="ttname"><a href="data__struct_8h.html#a18cc4152fb6dfb25ab26a2167c6db955">OFFSETY</a></div><div class="ttdeci">const int OFFSETY</div><div class="ttdoc">Margine Superiore della finestra. </div><div class="ttdef"><b>Definition:</b> data_struct.h:18</div></div>
<div class="ttc" id="structMAPPA__t_html_a66ed78e0a589ef13ecb5e82ec4097934"><div class="ttname"><a href="structMAPPA__t.html#a66ed78e0a589ef13ecb5e82ec4097934">MAPPA_t::r</a></div><div class="ttdeci">int r</div><div class="ttdoc">Numero di Colonne. </div><div class="ttdef"><b>Definition:</b> data_struct.h:44</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="ac909a1c5f452b4d5957792d9ba875f2a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void draw_pause </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structFONT__t.html">FONT_t</a> &amp;&#160;</td>
          <td class="paramname"><em>f</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stampa la pausa. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">f</td><td>variabile contenente i font del gioco di tipo FONT_T </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;{</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    al_draw_text(f.<a class="code" href="structFONT__t.html#a76faf4506d1f76b84db356b58d565f72">h2</a>, al_map_rgb(255,15,15), <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> / 2, <a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> *50/100, ALLEGRO_ALIGN_CENTER, <span class="stringliteral">&quot;gAME pAUSE&quot;</span>);</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        al_flip_display();</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;}</div>
<div class="ttc" id="data__struct_8h_html_af898f8fa683c129434a3e7e59fbdeecc"><div class="ttname"><a href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a></div><div class="ttdeci">const int SCREENWIDTH</div><div class="ttdoc">Larghezza dello schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:15</div></div>
<div class="ttc" id="structFONT__t_html_a76faf4506d1f76b84db356b58d565f72"><div class="ttname"><a href="structFONT__t.html#a76faf4506d1f76b84db356b58d565f72">FONT_t::h2</a></div><div class="ttdeci">ALLEGRO_FONT * h2</div><div class="ttdoc">Font H1. </div><div class="ttdef"><b>Definition:</b> data_struct.h:121</div></div>
<div class="ttc" id="data__struct_8h_html_a19d0acd5aaaf61eabc08cd603dc0d470"><div class="ttname"><a href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a></div><div class="ttdeci">const int SCREENHEIGHT</div><div class="ttdoc">Altezza dello schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:16</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a92afb82cda0774250bff5c33a94203f9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void draw_screen_menu </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>menu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structFONT__t.html">FONT_t</a> &amp;&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structBITMAP__t.html">BITMAP_t</a> &amp;&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stampa il menu inziale utilizza le immagini e i font caricate in memoria, e si occupa dell'effetto di ingrandimento, di rimpicciolimento dei pallini di selezione. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">menu</td><td>indica il valore del campo selezionato nel menu da &gt;1 e &lt;3 </td></tr>
    <tr><td class="paramname">f</td><td>variabile contenente i font del gioco di tipo FONT_T </td></tr>
    <tr><td class="paramname">b</td><td>variabile contenente le immagini utilizzate in gioco di tipo BITMAP_T </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;{</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">float</span> inc_dec;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> b_inc_dec;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <span class="keywordflow">if</span>(b_inc_dec){</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        inc_dec += 0.2;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;        <span class="keywordflow">if</span>(inc_dec &gt; 5){</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;            inc_dec = 5;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;            b_inc_dec = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;        }</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    }</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keywordflow">else</span>{</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;        inc_dec -= 0.2;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        <span class="keywordflow">if</span>(inc_dec &lt; 2){</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;            inc_dec = 2;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;            b_inc_dec = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        }</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    assert(inc_dec &lt;= 5 &amp;&amp; inc_dec &gt;= 2);</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    }</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    al_clear_to_color(al_map_rgb(0,0,0));</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    al_draw_text(f.<a class="code" href="structFONT__t.html#ab8b7bfc03f3e59ae5cc656798d685f95">h1</a>, al_map_rgb(255,255,255), <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> / 2, <a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> *10/100, ALLEGRO_ALIGN_CENTER, <span class="stringliteral">&quot;pACMAN gAME&quot;</span>);</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    al_draw_bitmap(b.<a class="code" href="structBITMAP__t.html#a066ddc3995050f478afa61d28db86209">header_image</a>, <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> *21/100, <a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> *25/100, 0);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    al_draw_text(f.<a class="code" href="structFONT__t.html#a76faf4506d1f76b84db356b58d565f72">h2</a>, al_map_rgb(255,255,255), <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> / 2, <a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> *55/100, ALLEGRO_ALIGN_CENTER, <span class="stringliteral">&quot;sTART gAME&quot;</span>);</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    al_draw_text(f.<a class="code" href="structFONT__t.html#a76faf4506d1f76b84db356b58d565f72">h2</a>, al_map_rgb(255,255,255), <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> / 2, <a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> *65/100, ALLEGRO_ALIGN_CENTER, <span class="stringliteral">&quot;cONTROLS&quot;</span>);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    al_draw_text(f.<a class="code" href="structFONT__t.html#a76faf4506d1f76b84db356b58d565f72">h2</a>, al_map_rgb(255,255,255), <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> / 2, <a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> *75/100, ALLEGRO_ALIGN_CENTER, <span class="stringliteral">&quot;hIGH sCORES&quot;</span>);</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    al_draw_text(f.<a class="code" href="structFONT__t.html#a4aef7cb48348ee0d28ef61adbeae86d4">h4</a>, al_map_rgb(255,255,255), <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> / 2, <a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> *95/100, ALLEGRO_ALIGN_CENTER, <span class="stringliteral">&quot;Powered by Belle &amp; Bruce&quot;</span>);</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keywordflow">switch</span> (menu)</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    {</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;      <span class="keywordflow">case</span> 0:</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;      <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;      <span class="keywordflow">case</span> 1:</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;            al_draw_filled_circle(<a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> *66/100, <a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> *56/100, inc_dec, al_map_rgb(255,255,255));</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;            al_draw_filled_circle(<a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> *34/100, <a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> *56/100, inc_dec, al_map_rgb(255,255,255));</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;      <span class="keywordflow">case</span> 2:</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;            al_draw_filled_circle(<a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> *66/100, <a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> *66/100, inc_dec, al_map_rgb(255,255,255));</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;            al_draw_filled_circle(<a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> *34/100, <a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> *66/100, inc_dec, al_map_rgb(255,255,255));</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;      <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;      <span class="keywordflow">case</span> 3:</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;            al_draw_filled_circle(<a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> *66/100, <a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> *76/100, inc_dec, al_map_rgb(255,255,255));</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;            al_draw_filled_circle(<a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> *34/100, <a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> *76/100, inc_dec, al_map_rgb(255,255,255));</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;      <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    }</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    al_flip_display();</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;}</div>
<div class="ttc" id="data__struct_8h_html_af898f8fa683c129434a3e7e59fbdeecc"><div class="ttname"><a href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a></div><div class="ttdeci">const int SCREENWIDTH</div><div class="ttdoc">Larghezza dello schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:15</div></div>
<div class="ttc" id="structFONT__t_html_a76faf4506d1f76b84db356b58d565f72"><div class="ttname"><a href="structFONT__t.html#a76faf4506d1f76b84db356b58d565f72">FONT_t::h2</a></div><div class="ttdeci">ALLEGRO_FONT * h2</div><div class="ttdoc">Font H1. </div><div class="ttdef"><b>Definition:</b> data_struct.h:121</div></div>
<div class="ttc" id="structFONT__t_html_ab8b7bfc03f3e59ae5cc656798d685f95"><div class="ttname"><a href="structFONT__t.html#ab8b7bfc03f3e59ae5cc656798d685f95">FONT_t::h1</a></div><div class="ttdeci">ALLEGRO_FONT * h1</div><div class="ttdef"><b>Definition:</b> data_struct.h:120</div></div>
<div class="ttc" id="data__struct_8h_html_a19d0acd5aaaf61eabc08cd603dc0d470"><div class="ttname"><a href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a></div><div class="ttdeci">const int SCREENHEIGHT</div><div class="ttdoc">Altezza dello schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:16</div></div>
<div class="ttc" id="structBITMAP__t_html_a066ddc3995050f478afa61d28db86209"><div class="ttname"><a href="structBITMAP__t.html#a066ddc3995050f478afa61d28db86209">BITMAP_t::header_image</a></div><div class="ttdeci">ALLEGRO_BITMAP * header_image</div><div class="ttdef"><b>Definition:</b> data_struct.h:107</div></div>
<div class="ttc" id="structFONT__t_html_a4aef7cb48348ee0d28ef61adbeae86d4"><div class="ttname"><a href="structFONT__t.html#a4aef7cb48348ee0d28ef61adbeae86d4">FONT_t::h4</a></div><div class="ttdeci">ALLEGRO_FONT * h4</div><div class="ttdoc">Font H3. </div><div class="ttdef"><b>Definition:</b> data_struct.h:123</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a0534db11adec5bb7032ca5c8246cc0dc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void draw_win </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structFONT__t.html">FONT_t</a> &amp;&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structBITMAP__t.html">BITMAP_t</a> &amp;&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>nuovo_record</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stampa gAME wIN. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">f</td><td>variabile contenente i font del gioco di tipo FONT_T </td></tr>
    <tr><td class="paramname">b</td><td>variabile contenente le immagini utilizzate in gioco di tipo BITMAP_T </td></tr>
    <tr><td class="paramname">nuovo_record</td><td>tipo boleano vero se si e' raggiunto un nuovo record </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;{</div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;    al_clear_to_color(al_map_rgb(0,0,0));</div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;    al_draw_text(f.<a class="code" href="structFONT__t.html#ab8b7bfc03f3e59ae5cc656798d685f95">h1</a>, al_map_rgb(15,255,15), <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> / 2, <a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> *50/100, ALLEGRO_ALIGN_CENTER, <span class="stringliteral">&quot;**** v i c t o r y ****&quot;</span>);</div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;    al_draw_text(f.<a class="code" href="structFONT__t.html#add1bb60f423fa53408b6e998917891b7">h5</a>, al_map_rgb(255,255,255), <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> / 2, (<a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> *50/100)+200, ALLEGRO_ALIGN_CENTER, <span class="stringliteral">&quot;Press Enter&quot;</span>);</div>
<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;    <span class="keywordflow">if</span>(nuovo_record)</div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;        al_draw_text(f.<a class="code" href="structFONT__t.html#add1bb60f423fa53408b6e998917891b7">h5</a>, al_map_rgb(255,255,255), <a class="code" href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a> / 2, (<a class="code" href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a> *50/100)-200, ALLEGRO_ALIGN_CENTER, <span class="stringliteral">&quot;Nuovo Record&quot;</span>);</div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;    al_flip_display();</div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;}</div>
<div class="ttc" id="data__struct_8h_html_af898f8fa683c129434a3e7e59fbdeecc"><div class="ttname"><a href="data__struct_8h.html#af898f8fa683c129434a3e7e59fbdeecc">SCREENWIDTH</a></div><div class="ttdeci">const int SCREENWIDTH</div><div class="ttdoc">Larghezza dello schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:15</div></div>
<div class="ttc" id="structFONT__t_html_ab8b7bfc03f3e59ae5cc656798d685f95"><div class="ttname"><a href="structFONT__t.html#ab8b7bfc03f3e59ae5cc656798d685f95">FONT_t::h1</a></div><div class="ttdeci">ALLEGRO_FONT * h1</div><div class="ttdef"><b>Definition:</b> data_struct.h:120</div></div>
<div class="ttc" id="data__struct_8h_html_a19d0acd5aaaf61eabc08cd603dc0d470"><div class="ttname"><a href="data__struct_8h.html#a19d0acd5aaaf61eabc08cd603dc0d470">SCREENHEIGHT</a></div><div class="ttdeci">const int SCREENHEIGHT</div><div class="ttdoc">Altezza dello schermo. </div><div class="ttdef"><b>Definition:</b> data_struct.h:16</div></div>
<div class="ttc" id="structFONT__t_html_add1bb60f423fa53408b6e998917891b7"><div class="ttname"><a href="structFONT__t.html#add1bb60f423fa53408b6e998917891b7">FONT_t::h5</a></div><div class="ttdeci">ALLEGRO_FONT * h5</div><div class="ttdoc">Font H4. </div><div class="ttdef"><b>Definition:</b> data_struct.h:124</div></div>
</div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generato Mar 14 Ott 2014 18:28:45 per Pac-Man da &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
